TARGET=bobbel

#CFLAGS = -Wall -fomit-frame-pointer -ffast-math -march=pentium3 -Os
# Optimal für gcc 4.1, as determined by flagmangler
CFLAGS = -Wall -O -fexpensive-optimizations -ffast-math -fno-zero-initialized-in-bss
CC=gcc

debug: clean main.c framework.h
	$(CC) -DLINUX -DDEBUG $(CFLAGS) -c main.c
	$(CC) -o $(TARGET) main.o -lSDL -lGL -lGLU -L. -Wl,-rpath,.

clean:
	rm $(TARGET) hash.o import_by_hash.o dlopen_graphics.h 2>/dev/null || true

.PHONY: dlopen_graphics.h $(TARGET)
